package com.copa.module.goods.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copa.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * @author copa
 * @createDate 2021-01-14
 * @function   t_goods表实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_goods")
@ApiModel(value="Goods对象", description="")
public class GoodsEntity extends BaseEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "商品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "类目id")
    @TableField("category_id")
    private Long categoryId;

    @ApiModelProperty(value = "是否上架：0否1是")
    @TableField("is_on_sale")
    private Integer isOnSale;

    @ApiModelProperty(value = "排序")
    @TableField("sort_order")
    private Integer sortOrder;

    @ApiModelProperty(value = "商品主图")
    @TableField("pic_url")
    private String picUrl;

    @ApiModelProperty(value = "是否展示：0否1是")
    @TableField("is_show")
    private Integer isShow;

    @ApiModelProperty(value = "热门推荐 0否1是")
    @TableField("is_hot")
    private Integer isHot;

    @ApiModelProperty(value = "商品展示价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "商品详情")
    @TableField("detail")
    private String detail;

    @ApiModelProperty(value = "是否删除 0否 1是")
    @TableField("is_delete")
    private Integer isDelete;


    public static final String NAME = "name";

    public static final String CATEGORY_ID = "category_id";

    public static final String IS_ON_SALE = "is_on_sale";

    public static final String SORT_ORDER = "sort_order";

    public static final String PIC_URL = "pic_url";

    public static final String IS_SHOW = "is_show";

    public static final String IS_HOT = "is_hot";

    public static final String DETAIL = "detail";

    public static final String IS_DELETE = "is_delete";


}
